# -*- coding: utf-8 -*-
with open('10-9.txt', encoding='utf8') as f:        # 打开并读取文件内容
    l = f.read()
# print('1==\n', l)
import re       # 调用正则表达式模块
m = re.findall(r'\b\w+\b', l)
# if m:
#     print('==', m)
# else:
#     print('==没找到')
print(f'一共有{len(m)}个单词。')